* {
  font-family: "italic", Helvetica, Arial, "Heiti SC", "Microsoft YaHei";
}

body,
html {
  margin: 0;
  padding: 0;
}

body {
  -webkit-text-size-adjust: none;
  font-size: 16px;
  line-height: 1.7;
  color: #2f3339;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #4990E2;
}

ul,
ol {
  padding-left: 30px;
}

button,
input,
optgroup,
option,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  outline: 0;
  transition: all .3s;
  -webkit-transition: all .3s;
  box-sizing: border-box;
}

.hide {
  display: none !important;
}

.nav-toggle {
  display: none;
  height: 40px;
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  padding-top: 2px;
  padding-left: 20px;
  z-index: 2;
  background-color: white;
}

.nav-toggle button {
  outline: none;
  margin-top: 2px;
  padding: 9px 10px;
  background: transparent;
  border: none;
  user-select: none;
}

.nav-toggle button .btn-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #666666;
  border-radius: 1px;
}

.nav-toggle button .btn-bar+.btn-bar {
  margin-top: 4px;
}

.show-block {
  display: block !important;
}

.show-block {
  animation: showBlock 0.4s forwards;
  display: block !important;
}

@keyframes showBlock {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-banner {
  height: 500px;
}

.banner-item {
  display: block;
  height: 100%;
  position: relative;
}

.banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-item .banner-text {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  margin-top: -20px;
  font-size: 40px;
  text-align: center;
}

.site-container {
  justify-content: center;
  height: max-content;
  position: relative;
  max-width: 1024px;
  margin: auto;
  padding-top: 30px;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  flex-direction: row;
  background-color: white;
}

.sidebar {
  width: 240px;
  margin-right: 30px;
  color: #666;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-info {
  text-align: center;
  border-bottom: 1px solid #979797;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-info .site-logo {
  width: 120px;
  padding: 10px;
}

.site-info .site-logo img {
  width: 100%;
  object-fit: contain;
}

.site-info .site-name {
  margin-top: 10px;
  margin-bottom: 30px;
}

.site-nav ul {
  width: 100%;
  padding-left: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

.site-nav ul li {
  position: relative;
  margin: 20px auto;
  padding-left: 0;
  list-style: none;
}

.site-nav ul li a {
  display: block;
}

.search-field {
  display: none;
  position: absolute;
  background-color: #fff;
  top: 40px;
  left: 0;
  width: 240px;
  padding: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.search-field form {
  display: flex;
}

.search-input {
  flex: 1;
  outline: 0;
  border: 1px solid #979797;
  height: 20px;
  line-height: 20px;
  padding: 5px 8px;
}

.search-btn {
  outline: 0;
  -webkit-appearance: none;
  border: 1px solid #979797;
  height: 32px;
  flex: 0;
  white-space: nowrap;
  width: 80px;
  margin-left: 4px;
  padding: 0 10px;
  cursor: pointer;
  background-color: #fff;
}

.toc-article {
  width: 240px;
  overflow-y: scroll;
}

.toc-article::-webkit-scrollbar {
  width: 0;
}

.toc-article::-webkit-scrollbar-thumb {
  background-color: transparent;
  -webkit-border-radius: 4px;
  border-radius: 2px;
}

.toc-article ol {
  padding-left: 0;
}

.toc-article li {
  font-size: 0;
  box-sizing: border-box;
  border-left: 2px solid #cccccc;
  list-style: none;
  padding-left: 10px;
}

.toc-article li.active {
  border-left: 2px solid #4990E2;
}

.toc-article a {
  display: block;
  line-height: 20px;
  margin-bottom: 10px;
  font-size: 14px;
}

.toc-article li.active>a {
  color: #4990E2;
}

.toc-article li.level-0 {
  border-left: none !important;
}

.toc-article li.level-1 {
  margin-left: 15px;
  opacity: 0.95;
}

.toc-article li.level-2 {
  margin-left: 25px;
  opacity: 0.9;
}

.toc-article li.level-3 {
  margin-left: 35px;
  opacity: 0.85;
}

.toc-article li.level-4 {
  margin-left: 45px;
  opacity: 0.8;
}

.toc-article li.level-5 {
  margin-left: 55px;
  opacity: 0.75;
}

.toc-fixed {
  position: fixed;
  top: 10px;
  width: 240px;
}

.main {
  max-width: 784px;
  flex: 1;
}

.list-header {
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
}

.post-item {
  width: 100%;
  height: max-content;
  margin-bottom: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
}

.post-time {
  font-size: 18px;
  color: #999999;
  width: 120px;
  font-weight: 300;
  line-height: 24px;
}

.post-info {
  flex: 1;
}

.post-info .post-title {
  cursor: pointer;
  text-decoration: none;
  display: block;
  line-height: 24px;
  cursor: pointer;
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 300;
  transition: color 0.4s;
}

.post-meta {
  color: #999;
  font-size: 14px;
}

.post-meta .tag::after {
  content: "/";
  display: inline-block;
  padding-left: 8px;
  padding-right: 6px;
  color: #999;
  cursor: default;
}

.post-meta .tag:last-child::after {
  display: none;
}

.post-info .post-desc {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #777;
  margin-top: 5px;
  margin-bottom: 10px;
}

.pager {
  text-align: center;
}

.pager a,
.pager span {
  display: inline-block;
  width: 55px;
  height: 40px;
  line-height: 40px;
  border-radius: 4px;
  border: 1px solid #eee;
  margin: 3px 0;
}

.pager span:hover {
  cursor: default;
  color: #777;
}

.pager a:hover {
  border-color: #4990E2;
}

.post-detail .post-title {
  font-size: 22px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 6px;
}

.post-detail .post-meta {
  text-align: center;
}

.post-detail .post-content {
  margin-top: 20px;
  font-weight: 300;
}

.post-detail .post-content img {
  max-width: 100%;
}

pre,
.highlight {
  overflow: auto;
  margin: 20px 0;
  padding: 0;
  font-size: 13px;
  color: #4d4d4c;
  background: #f7f7f7;
  line-height: 1.6;
}

pre,
pre span,
code {
  font-family: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace;
}

code {
  padding: 2px 4px;
  word-wrap: break-word;
  color: #555;
  background: #eee;
  border-radius: 3px;
  font-size: 13px;
}

pre {
  padding: 10px;
}

pre code {
  padding: 0;
  color: #4d4d4c;
  background: none;
  text-shadow: none;
}

.highlight {
  border-radius: 1px;
}

.highlight pre {
  border: none;
  margin: 0;
  padding: 10px 0;
}

.highlight table {
  margin: 0;
  width: auto;
  border: none;
}

.highlight td {
  border: none;
  padding: 0;
}

.highlight figcaption {
  font-size: 1em;
  color: #4d4d4c;
  line-height: 1em;
  margin-bottom: 1em;
}

.highlight figcaption a {
  float: right;
  color: #4d4d4c;
}

.highlight figcaption a:hover {
  border-bottom-color: #4d4d4c;
}

.highlight .gutter pre {
  padding-left: 10px;
  padding-right: 10px;
  color: #869194;
  text-align: right;
  background-color: #eff2f3;
}

.highlight .code pre {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #f7f7f7;
}

.highlight .line {
  height: 20px;
}

.related {
  margin-top: 30px;
}

.related-title {
  color: #777;
}

.related ul li {
  padding: 4px 0;
}

.friend-links {
  text-align: center;
  margin-top: 30px;
  color: #777;
}

.friend-links .title {
  color: #999;
}

.friend-links .item {
  margin-right: 12px;
}

.friend-links .item:last-child {
  margin-right: 0;
}

.footer {
  text-align: center;
  color: #999;
  margin-top: 20px;
  margin-bottom: 20px;
}

.footer .copyright {
  font-size: 14px;
}

.error-page {
  text-align: center;
  margin: 100px 0;
}

input,
select,
textarea {
  height: 38px;
  line-height: 1.3;
  line-height: 38px\9;
  border-width: 1px;
  border-style: solid;
  background-color: #fff;
  color: rgba(0, 0, 0, .85);
  border-radius: 2px;
  border-color: #eee;
  display: block;
  width: 100%;
  padding-left: 10px;
}

input[type=radio],
input[type=checkbox],
input[type=file] {
  display: inherit;
  width: inherit;
}

textarea {
  position: relative;
  min-height: 100px;
  height: auto;
  line-height: 20px;
  padding: 6px 10px;
  resize: vertical;
}

label {
  display: inline-block;
}

label span {
  display: inline-block;
  height: 38px;
  line-height: 1.3;
  line-height: 38px\9;
  vertical-align: bottom;
}

.form-item {
  margin-bottom: 15px;
  clear: both;
  zoom: 1;
}

.form-label {
  position: relative;
  float: left;
  display: block;
  padding: 9px 15px;
  width: 80px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}

.form-value {
  position: relative;
  margin-left: 110px;
  min-height: 36px;
}

.form-captcha {
  height: 38px;
  cursor: pointer;
}

.form-control {
  margin: 30px 15px;
  text-align: center;
}

.form-btn {
  display: inline-block;
  vertical-align: middle;
  height: 38px;
  line-height: 38px;
  border: 1px solid #eee;
  padding: 0 18px;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

@media screen and (max-width: 680px) {
  .nav-toggle {
    display: block;
  }
  .site-banner {
    height: 260px;
  }
  .site-nav {
    display: none;
    position: fixed;
    left: 0;
    top: 40px;
    background-color: white;
    width: 100%;
    border-bottom: 1px solid #CCCCCC;
    border-top: 1px solid #CCCCCC;
    height: auto;
    max-height: calc(100% - 40px);
    overflow-y: auto;
  }

  .site-nav ul {
    box-sizing: border-box;
  }

  .site-nav ul li {
    padding: 6px 0;
    padding-left: 30px;
    margin: 0;
  }
  .site-nav .sub-menu {
    margin: 0;
  }
  .site-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 30px;
  }

  .toc-article {
    display: none;
  }
  .post-item {
    flex-direction: column;
  }
  .footer {
    padding-left: 10px;
    padding-right: 10px;
  }
}